﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using CSharp.Libs.Koc;


namespace KocAllianceMemberLister
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        Kernel _KRNL = null;

        public MainWindow()
        {
            InitializeComponent();

            _KRNL = new Kernel();
            this.alAlliances.Initialize(_KRNL);
            this.alAlliances.AllianceClicked += new CSharp.Libs.WPF.UserControls.AllianceList.AllianceClickedEventHandler(alAlliances_AllianceClicked);
        }

        void alAlliances_AllianceClicked(object sender, int AllianceId)
        {
            MessageBox.Show(AllianceId.ToString());
        }
    }
}
